<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>排行榜</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        /* 头部 */
        .header {
            background-color: #e63946;
            color: white;
            padding: 18px 15px;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
        }
        /* 导航 */
        .nav {
            display: flex;
            background-color: white;
            border-bottom: 1px solid #eee;
        }
        .nav-item {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            font-size: 15px;
            color: #666;
        }
        .nav-item.active {
            color: #e63946;
            font-weight: 500;
            border-bottom: 2px solid #e63946;
        }
        /* 内容容器 */
        .container {
            padding: 10px;
        }
        /* 排行项 */
        .rank-item {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        /* 图片容器（带TOP标识） */
        .img-container {
            position: relative;
        }
        .rank-img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            display: block;
        }
        /* TOP排行标识 */
        .rank-top {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 3px 8px;
            background-color: #e63946;
            color: white;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        .rank-top::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            border-width: 5px 0 0 10px;
            border-style: solid;
            border-color: #e63946 transparent transparent;
        }
        /* 内容区域 */
        .rank-content {
            padding: 12px 15px;
        }
        .rank-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .rank-tag {
            display: inline-block;
            background-color: #f5f5f5;
            color: #666;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 4px;
            margin-right: 6px;
            margin-bottom: 10px;
        }
        /* 右下角的互动数据 */
        .interactive-data {
            text-align: right;
            font-size: 12px;
            color: #999;
        }
        .interactive-data span {
            margin-left: 12px;
        }
        .interactive-data .like::before {
            content: '👍 ';
        }
        .interactive-data .comment::before {
            content: '💬 ';
        }
    </style>
</head>
<body>
    <div class="header">热门排行榜</div>
    
    <div class="nav">
        <div class="nav-item active">好文精选</div>
        <div class="nav-item">热门资讯</div>
    </div>
    
    <div class="container">
        <!-- 排行1 -->
        <div class="rank-item">
            <div class="img-container">
                <img src="https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="KODI IPTV" class="rank-img">
                <span class="rank-top">TOP 1</span>
            </div>
            <div class="rank-content">
                <div class="rank-title">安卓电视通过 KODI 看 IPTV 全攻略</div>
                <div>
                    <span class="rank-tag">影视</span>
                    <span class="rank-tag">教程</span>
                </div>
                <div class="interactive-data">
                    <span class="like">345</span>
                    <span class="comment">105</span>
                </div>
            </div>
        </div>
        
        <!-- 排行2 -->
        <div class="rank-item">
            <div class="img-container">
                <img src="https://images.unsplash.com/photo-1551028719-00167b16eac5?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="跑步技巧" class="rank-img">
                <span class="rank-top">TOP 2</span>
            </div>
            <div class="rank-content">
                <div class="rank-title">起跑线26期：5km跑步，你到了哪一级别？学会这几个跑步技巧，助你提升PB</div>
                <div>
                    <span class="rank-tag">跑者</span>
                    <span class="rank-tag">运动</span>
                </div>
                <div class="interactive-data">
                    <span class="like">132</span>
                    <span class="comment">151</span>
                </div>
            </div>
        </div>
        
        <!-- 排行3 -->
        <div class="rank-item">
            <div class="img-container">
                <img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80" alt="百度搜索" class="rank-img">
                <span class="rank-top">TOP 3</span>
            </div>
            <div class="rank-content">
                <div class="rank-title">百度一下你就知道：高效搜索技巧分享</div>
                <div>
                    <span class="rank-tag">工具</span>
                    <span class="rank-tag">技巧</span>
                </div>
                <div class="interactive-data">
                    <span class="like">96</span>
                    <span class="comment">208</span>
                </div>
            </div>
        </div>
    </div>
</body>
</html>